﻿using SingletonDemo;

var obj1 = SingletonObject.GetInstance();
Console.WriteLine($"Data of object 1: {obj1.Data}");

var obj2 = SingletonObject.GetInstance();
Console.WriteLine($"Data of object 2: {obj2.Data}");

Console.WriteLine($"Are objects equal? {object.Equals(obj1, obj2)}");

Console.ReadKey();
